<template>
  <div>
     <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[5, 10, 15, 20]"
      :page-size="5"
      layout=" total,sizes, prev, pager, next, jumper"

      :total="1">

    </el-pagination>
  </div>
</template>
<script>
export default {
  props: ['pagesizetall', 'list'],
  data () {
    return {
      currentPage: 5
    }
  },

  created () {
    console.log(this.pagesizetall)
  },

  methods: {
    handleSizeChange (val) {
      this.pagesizetall.page = val
      this.list()
      console.log(`每页 ${val} 条`)
    },
    handleCurrentChange (val) {
      console.log(`当前页: ${val}`)
    }

  }
}
</script>

<style scoped lang='less'>

</style>
